package io.gitee.tziye.core.fs;

import io.gitee.tziye.RenaiClient;

import java.util.List;
import java.util.Map;

public abstract class FsOperator {

    protected final RenaiClient renaiClient;

    public FsOperator(RenaiClient renaiClient) {
        this.renaiClient = renaiClient;
    }

    public abstract long save(String module, Map<String, Object> metadata, byte[] content);

    public abstract long save(String module, byte[] content);

    public abstract RenaiFile query(long id);

    public abstract List<RenaiFile> query(String module);

    public abstract boolean delete(long id);

    public abstract int delete(String module);

}
